<div class="content-section introduction">
    <div>
        <span class="feature-title">值班管理<span class="gt">&gt;</span>查看计划  </span>
    </div>
</div>
<p-progressBar mode="indeterminate" [hidden]="progressBar"></p-progressBar>
<div class="content-section implementation GridDemo " id="viewSchedule">
    <div class="title col-sm-12">
        <div class="col-sm-1">
            <span>基本信息</span>
        </div>
        <div class="col-sm-11 pull-right">
            <button type="button"
                    class="pull-right"
                    pButton
                    [routerLink]="['/index/duty/manage']"
                    icon="fa-close"
                    style="width: 30px"></button>
        </div>
    </div>
    <p-growl [(value)]="msgPop"></p-growl>
        <form [formGroup]="newSchdule" class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-1 control-label" >计划编号：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input class="form-control cursor_not_allowed" type="text" formControlName="scheduleId"  pInputText placeholder="{{ defaultId }}" readonly />
                </div>
                <label class="col-sm-1 control-label">排班人员：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input  class=" form-control cursor_not_allowed" formControlName="scheduleCreator" type="text"
                            pInputText placeholder="{{ defaultCreator }}" readonly  />
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">计划名称：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input class=" form-control cursor_not_allowed"
                           formControlName="schduleName" type="text" pInputText
                            placeholder="{{ defaultName }}" readonly
                           [class.my-dirty]="isName"/>
                </div>
                <label class="col-sm-1 control-label">排班时间：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input class=" form-control cursor_not_allowed"
                           type="text" formControlName="scheduleCreateTime" pInputText
                           placeholder="{{ defaultCreateTime }}" readonly/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">值班部门：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input class=" form-control cursor_not_allowed"type="text"
                           pInputText
                           placeholder="{{ selectedDepartment }}" readonly/>

                </div>
                <label class="col-sm-1 control-label">审批人：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input  class=" form-control cursor_not_allowed"
                            formControlName="scheduleCreator" type="text" pInputText
                            placeholder="{{ approveSelectedMultipleOption }}" readonly/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label">开始时间：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input  class=" form-control cursor_not_allowed" type="text"
                            pInputText formControlName="start"
                           placeholder="{{ beginTime }}" readonly/>
                </div>
                <label class="col-sm-1 control-label">结束时间：</label>
                <div class="col-sm-5 ui-no-padding-left-15px">
                    <input  class=" form-control cursor_not_allowed"
                            type="text" formControlName="scheduleCreateTime"
                            pInputText id="create_time"
                            placeholder="{{ endTime }}" readonly/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-1 control-label" >值班班次：</label>
                <div class="col-sm-11 ui-no-padding-left-15px">
                    <input ngClass="ui-fluid"
                           class=" form-control cursor_not_allowed" type="text"
                           formControlName="shift"  pInputText
                           placeholder="{{ shiftSelectedMultipleOption }}" readonly/>
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-1 control-label">关联值班计划：</label>
                <div class="col-sm-11 ui-no-padding-left-15px">
                    <input ngClass="ui-fluid"
                           class=" form-control cursor_not_allowed"
                           type="text" pInputText
                           placeholder="{{ relativeSelectedMultipleOption }}" readonly/>
                </div>
            </div>
          <!--{{defaultstatus}}-->
            <div class="form-group" *ngIf="defaultstatus !== '新建' && defaultstatus !== '待审核' ">
              <!---->
                <label class="col-sm-1 control-label">审批意见：</label>
                <div class="col-sm-11 ui-no-padding-left-15px">
                    <input   ngClass="ui-fluid"
                             class=" form-control cursor_not_allowed"
                             type="text" pInputText id="name"
                             placeholder="{{ apporvalSuggestion }}" readonly/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-12 ui-no-padding-left-15px">
                    <button class="pull-right" pButton type="button" (click)="download()" label="下载排班计划"></button>
                </div>
            </div>
        </form>
</div>
